//
//	MCPlanTimeDateModel.swift
//	Model file generated using JSONExport: https://github.com/Ahmed-Ali/JSONExport

import Foundation 
import ObjectMapper


class MCPlanTimeDateModel : NSObject, NSCoding, Mappable{

	var planDateList : [MCPlanTimePlanDateList]?
	var planMonth : String?


	class func newInstance(map: Map) -> Mappable?{
		return MCPlanTimeDateModel()
	}
	required init?(map: Map){}
	private override init(){}

	func mapping(map: Map)
	{
		planDateList <- map["planDateList"]
		planMonth <- map["planMonth"]
		
	}

    /**
    * NSCoding required initializer.
    * Fills the data from the passed decoder
    */
    @objc required init(coder aDecoder: NSCoder)
	{
         planDateList = aDecoder.decodeObject(forKey: "planDateList") as? [MCPlanTimePlanDateList]
         planMonth = aDecoder.decodeObject(forKey: "planMonth") as? String

	}

    /**
    * NSCoding required method.
    * Encodes mode properties into the decoder
    */
    @objc func encode(with aCoder: NSCoder)
	{
		if planDateList != nil{
			aCoder.encode(planDateList, forKey: "planDateList")
		}
		if planMonth != nil{
			aCoder.encode(planMonth, forKey: "planMonth")
		}

	}

}